package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.DailyNewsComment;
import cn.wolfcode.trip.base.query.DailyNewsCommentQuery;

import java.util.List;

public interface DailyNewsCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DailyNewsComment record);

    DailyNewsComment selectByPrimaryKey(Long id);

    List<DailyNewsComment> selectAll();

    int updateByPrimaryKey(DailyNewsComment record);

    List<DailyNewsComment> selectForComment(DailyNewsCommentQuery qo); //根据日报查询评论

    Integer selectByNewsId(Long news_id);

    List<DailyNewsComment> selectByUserId(DailyNewsCommentQuery qo);
}